import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
Vue.use(plugins)
import {
	addDateRange,
	handleTree,
	parseTime,
	resetForm,
	selectDictLabel,
	selectDictLabels
} from "@/utils/ruoyi";
import {
	getDicts
} from "@/api/system/dict/data";
import{
	deptTreeSelect,
	baseRegionSelect,
	baseRegionList,
	inputUserList,
	selectChannelList,
	getWarehouseByDeptSelect
}from "@/api/system/tool/show";


// 全局方法挂载
Vue.prototype.getDicts = getDicts
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.deptTreeSelect = deptTreeSelect
Vue.prototype.baseRegionSelect = baseRegionSelect
Vue.prototype.baseRegionList = baseRegionList
Vue.prototype.inputUserList = inputUserList
Vue.prototype.selectChannelList = selectChannelList
Vue.prototype.getWarehouseByDeptSelect = getWarehouseByDeptSelect

//uView主JS库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
//全局组件挂载
import dictTag from './components/DictTag/index.vue'
Vue.component('dict-tag', dictTag)

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()